import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/css/common.scss'

// 国际化语言设置
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)

// 实例化语言设置
const i18n = new VueI18n({
  locale: 'zh', // 语言标识
  messages: {
    // eslint-disable-next-line no-undef
    'zh': require('./common/lang/zh.js'),
    // eslint-disable-next-line no-undef
    'en': require('./common/lang/en.js')
  }
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount('#app')
